home *** CD-ROM | disk | FTP | other *** search
/ Postcardigtal: Baalbeck / postcardigtal: Baalbeck.iso / mac / ehistory.swf / scripts / frame_1 / PlaceObject2_9_5 / CLIPACTIONRECORD onClipEvent(enterFrame).as
Text File  |  2003-07-04  |  390b  |  16 lines

  1. onClipEvent(enterFrame){
  2.    abso = Math.abs(_root.currentyear - _root.newyear);
  3.    if(_root.count)
  4.    {
  5.       if(Math.abs(_root.currentyear - _root.newyear) > Math.abs(2 * _root.step))
  6.       {
  7.          _root.currentyear = int(_root.currentyear + _root.step);
  8.       }
  9.       else
  10.       {
  11.          _root.currentyear = _root.newyear;
  12.          _root.count = false;
  13.       }
  14.    }
  15. }
  16.